<?php

class PartnerApp extends MallbaseApp {
    
    var $_partner_mod;
    function __construct() {
        $this->PartnerApp();
    }
    function PartnerApp() {
        parent::__construct();
        $this->_partner_mod = &m('partner');
    }
    
    function index()
    {
        
        $page = $this->_get_page(10);   //获取分页信息
        $partner_list = $this->_partner_mod->find(array(
            'conditions' => 'store_id = 0',
            'order'=>'sort_order desc',
            'limit' => $page['limit'],
            'count' => true   //允许统计
        ));
        $page['item_count'] = $this->_partner_mod->getCount();   //获取统计数据
        $this->_format_page($page);
        $this->assign('page_info', $page);
        $this->_config_seo('title',  Lang::get('friendship_link').' - ' . Conf::get('site_title'));
        $this->assign('page_description', Conf::get('site_description'));
        $this->assign('page_keywords', Conf::get('site_keywords'));
        
        $this->assign('partner_list', $partner_list);
        $this->display('partner.index.html');
    }
    
    
}

?>
